﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ServiceRss.Models;
using System.Web.Security;
using RssMVC4.Models;

namespace ServiceRss
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IServiceRss" in both code and config file together.
    [ServiceContract]
    public interface IServiceRss
    {
        [OperationContract]
        System.Web.Security.MembershipCreateStatus LogOn(LoginModel model);
     
        [OperationContract]
        MembershipCreateStatus CreatAccountAndConnect(RegisterModel model);
        
        [OperationContract]
        List<Flux> GetFlux(LoginModel model);

        [OperationContract]
        List<Rss> GetRss(LoginModel model, Flux flux);

        [OperationContract]
        FluxStatus AddRss(LoginModel model, RegisterRss newRss);
        
        [OperationContract]
        FluxStatus RemoveRss(LoginModel model, DeleteRss deleteRss);

        [OperationContract]
        FluxStatus EditRss(LoginModel model, EditFlux editRss);
    }
}
